
const sendForm = async(event) => {
   event.preventDefault();
   const inp = document.getElementById('input_1496398308530')
   const text = inp.value;
   console.log(text);
   debugger;
  try {
    const res = await fetch('https:///kanatowedding.ru/tg_msg/', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({ text })
    });
    const data = await res.json();
    inp.value='';
    console.log(data);
  } catch (error) {
    console.error('Error:', error);
  }
 };
